package net.boss.fang.mq.customer;

import org.springframework.stereotype.Component;

@Component
public class RabbitMQReceive {

    private static Integer first = 0;
    
    private static Integer second = 0;
    
    public void onMessage(Object msg) {
        first++;
        System.out.println("one---"+msg+"---"+first);
       /* if(first%3==0) {
            Integer.valueOf("ss");
        }*/
    }
    
    public void onMessageTwo(Object msg) {
        second++;
        System.out.println("two---"+msg+"---"+second);
    }
}
